<template>
  <div>
<el-row class="tac">
  <el-col :span="24">
    <el-menu mode='horizontal'
      default-active="1"
      class="el-menu-vertical-demo"
      :router='true'
      @open="handleOpen"
      @close="handleClose"
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b">
       <el-menu-item index="/window">
        <span slot="title">弹窗</span>
      </el-menu-item>
      <el-menu-item index="/tab">
        <span slot="title">tab</span>
      </el-menu-item>
      <el-menu-item index="/table">
        <span slot="title">表格</span>
      </el-menu-item>
    </el-menu>
  </el-col>
</el-row>
<router-view/>
  </div>
</template>

<script>
export default {
  data () {
    return {

    }
  },
  methods: {
    handleOpen (key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose (key, keyPath) {
      console.log(key, keyPath)
    }
  }
}
</script>

<style scoped>

</style>
